#import comm_twisted as comm, heapq, time
import comm_asynchat as comm, heapq, time

nodes = comm.nodes

def init(addr = None, backlog = 16):
    comm.init(addr, backlog)

def receive(ident, hook):
    comm.receive(ident, hook)

def send(msg, ident):
    comm.send(msg, ident)

def timer(timeout, hook, msg = ''):
    comm.timer(timeout, hook, msg)

def run():
    comm.run()
